package com.qf.zyh.util;
//字符串工具类 判定字符串是否为空
public class StrUtils {
	public static boolean empty(String msg){
		return msg!=null && msg.length()>0;
	}
	public static boolean empty(String...msg){
		boolean res = true;
		for(String s:msg){
			res = (s!=null && s.length()>0);
			if(!res){
				break;
			}
		}
		return res;
	}

    public static Integer toint(String tid) {
		if (empty(tid)) {
			try {
				//不为空则转换成integer格式
				return Integer.valueOf(tid);
			} catch (NumberFormatException e) {
				e.printStackTrace();
			}
		}
		return 0;
    }
}
